package view

import (
	"github.com/labstack/echo"
	"src/controller"
)

func InitCommentView(comment *echo.Group) {
	comment.POST("", controller.CreatComment)
	comment.DELETE("", controller.DeleteComment)
	comment.GET("", controller.GetCommentByForumpost1)
	comment.GET("/list", controller.GetCommentByForumpost)
	comment.GET("/id", controller.GetCommentById)
	comment.POST("/action/star", controller.StarComment)
	comment.POST("/action/tipoff", controller.TipoffComment)

	comment.POST("/reply", controller.CreatReply)
	comment.DELETE("/reply", controller.DeleteReply)
	comment.GET("/reply/list/comment", controller.GetRepliesByComment)
	comment.GET("/reply/list/forumpost", controller.GetReplyByForumpost)
	comment.GET("/reply/id", controller.GetReplyById)
}
